SVAR yDataName= :WMPeakFits:yDataName // when we first did a set, we squirreled away the name of the data here (I hope the term squirreled does not offend any rodent-americans)
String/G $holdStrName= GenHoldStrForFitProc($"coefHold") // we use a variable rather than creating literal string in command so unlimited peaks will not create too long a command
String s= func
if( gDoBaseline )
s += "BL"
endif
s += " " + GetWavesDataFolder(cw,4)+" "+GetWavesDataFolder(dy,4)+"["+num2str(gRangeBegin)+","+num2str(gRangeEnd)+"]"
root:Packages:WMmpFitting:gNumPeaks= npks // NOTE: done in two steps because previous rhs would have been evaluted in context of DF= root:Packages: etc